package com.example.springbootdockerdemo.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName TongHuiException
 * @Author Chengy
 * @Date 2020/12/15 15:45
 * @Version 1.0
 */

@Data
@AllArgsConstructor//有参构造方法
@NoArgsConstructor//无参构造方法
public class TongHuiException extends RuntimeException {

    private Integer code;
    private String msg;

    @Override
    public String toString() {
        return "TongHuiException{" +
                "message=" + this.getMsg() +
                ", code=" + code +
                '}';
    }
}
